package com.yonyou.cms.epc.client.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.bean.dto.framework.RestResultResponse;
import com.yonyou.cyxdms.sysmanage.client.config.FeiginHeaderManageConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(
        value = "wms-service",
        configuration = FeiginHeaderManageConfig.class
)
public interface WmsServiceFeign {

    /**
     * 购物车提交订单feign接口
     * @param params
     * @return
     */
    @PostMapping("/part/submission/epcImport")
    Object epcImport(@RequestBody Object params);
    /**
     * 查询替换件feign接口
     * @param queryCondition,page
     * @return
     */
    @GetMapping(value = "/part/partinfo/getSubPartList")
    RestResultResponse<List<Map<String, Object>>> getSubPartList(@RequestParam Map<String, Object> queryCondition);

}
